import request from '@/utils/request'
import Cookies from 'js-cookie'
export function storeList(data) {
    return request({
        url: "/General/get_store/-1",
        method: "post",
        data: data
    })
}
export function houseList(data) {
    return request({
        url: "/Stock_check/get_channel",
        method: "post",
        data: data
    })
}
// 列表
export function getList(data, page) {
    return request({
        url: '/Others_stock/out_list/' + (page ? page : 1),
        method: 'post',
        data: data
    })
}

// 获取分页
export function getPage(data) {
    return request({
        url: '/Others_stock/get_out_page',
        method: 'post',
        data: data
    })
}
// 导出
export function getExport(data) {
    window.location.href = `https://${location.host}/smsi/index.php/Others_stock/get_out_excel?time_begin=${data.time_begin}&time_end=${data.time_end}&house_id=${data.house_id}&store_id=${data.store_id}&didixueshengka=${Cookies.get('SMS_AdminToken')}`; 
}
